package com.topisv.tms.service.work.prepkg;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.topisv.tms.entity.work.prepkg.PrepkgUpItem;
import com.topisv.tms.repository.work.prepkg.PrepkgUpItemDao;

/**
 * 上架任务明细（预包装流程）_service
 * @author ch
 */
@Component
@Transactional(readOnly = true)
public class PrepkgUpItemService {

	@Autowired
	private PrepkgUpItemDao prepkgUpItemDao;

	/**
	 * 查询明细
	 * @param planCode
	 * @return
	 */
	public List<PrepkgUpItem> loadByPlanCode(String planCode) {
		return this.prepkgUpItemDao.loadByPlanCode(planCode);
	}

	public List<PrepkgUpItem> loadByTaskCode(String taskCode) {
		return this.prepkgUpItemDao.loadByTaskCode(taskCode);
	}

}